package com.utils.adapter;

import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.List;

/**
 * Created by mac_wk on 14-12-11.
 */
public abstract class GeneralAdapter<T> extends BaseAdapter {
    public List<T> datas = null;
    public GeneralAdapter(List<T> datas)
    {
        this.datas = datas;
    }
    @Override
    public int getCount() {
        return datas.size();
    }

    @Override
    public Object getItem(int position) {
        return position;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return null;
    }
}
